<html>
	<head>
		<meta charset="utf-8">
		<title>Steedos Workflow</title>

		<!-- <meta name="apple-itunes-app" content="app-id=686408407" /> -->
		
		<!-- <meta http-equiv="Refresh" content="0;url=steedos://" /> -->

		<script type="text/javascript" src="/lib/jquery/jquery-1.11.2.min.js"></script>
	</head>
	<body>
		<!-- <a href="steedos://?ins_id=MHXDEqofRBhCTPZgj&space_id=519f004e8e296a1c5f00001d" style="font-size:100px;">点击进入APP</a> -->
		<script type="text/javascript">
			$( document ).ready(function() {
				console.log( "ready!" );
				var urlQuery = function(name){
					var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
					var r = window.location.search.substr(1).match(reg);
					if (r != null) return unescape(r[2]);
					return null;
				};
				var space_id = urlQuery('space_id');
				var ins_id = urlQuery('ins_id');
				console.log("space_id: " + space_id);
				console.log("ins_id: " + ins_id);
				if (space_id && ins_id) {
					$("head").append('<meta http-equiv="refresh" content="0;url=steedos://?ins_id='+ins_id+'&space_id='+space_id+'">');
				}
				else {
					$("head").append('<meta http-equiv="refresh" content="0;url=steedos://');
				}
			});
		</script>
	<body>
</html>